<%@page language="java" pageEncoding="UTF-8"%>
<%@include file="/views/common/include/taglib.jsp"%>
<link type="text/css" rel="stylesheet"
	href="${ctx }/css/dlifestyle/sectionparent.css" />
<link type="text/css" rel="stylesheet"
	href="${ctx }/css/dlifestyle/admin.css" />
<link type="text/css" rel="stylesheet"
	href="${ctx}/css/dlifestyle/table.css" />
<script type="text/javascript">
	//返回上一页
	function cancel() {
		loadContent("/noticeInfo/noticeInfoList");
	}
	
	function nextPage(id) {
		loadContent("/noticeInfo/lastOrNextOne?id="+id+"&flag=1");
	}
	
	function lastPage(id) {
		loadContent("/noticeInfo/lastOrNextOne?id="+id+"&flag=0");
	}
</script>
<style>
	.unRead{
		float:left;
		position: fixed;
		margin-left: -103px;
		margin-top: 81px;
		background-color:#FF8C05;
		color:#FFFFFF;
		width:22px;
		height:22px;
		border-radius:50%;
		text-align:center;
		font-size: 14px; 
		font-family: '微软雅黑';
		line-height:22px;
	}
	
</style>
	<div style="top:130px;position:fixed;height:30px;font-size: 14px;font-family: '微软雅黑';margin-left:-236px;">
		当前位置：${sessionScope.currcent_position}
	</div>
	<input type="hidden" value="${unRead}" id="hasReadOrNot" />
	<c:if test="${unRead >0}">
	<div class="unRead">
		${unRead}
	</div>
	</c:if>
<section style="margin-top:23px;">
	<div style="font-family: '微软雅黑';">
		<div style="text-align: center;"><h4>${noticeInfo.title}</h4></div><br>
		<div style="height:20px;font-size: 12px;">
			<%-- <div style="float:left;">发布者：${noticeInfo.userAccount} 阅读人数：${noticeInfo.readAccount}</div>
			<div style="float:right;">发布时间：<fmt:formatDate value="${noticeInfo.sendTime}" pattern="yyyy-MM-dd"/></div> --%>
			<span>发布者：${noticeInfo.userAccount} 发布时间：<fmt:formatDate value="${noticeInfo.sendTime}" pattern="yyyy-MM-dd"/></span>
		</div><hr><br>
		<div>${noticeInfo.content}</div>
	</div>
	<div style="">
		<button style="margin-top: 20px;float: left;margin-left: 10px;" class="buttonCancle" onclick="cancel();">返&nbsp;&nbsp;回</button>
		<button style="margin-top: 20px;float: right;margin-right: 10px;" class="buttonCancle" onclick="nextPage(${noticeInfo.id});">下一篇</button>
		<button style="margin-top: 20px;float: right;margin-right: 10px;" class="buttonCancle" onclick="lastPage(${noticeInfo.id});">上一篇</button>
			<%-- <li><a href="${ctx}/noticeInfo/lastOrNextOne?id=${noticeInfo.id}&flag=0">上一篇</a></li>
			<li><a href="${ctx}/noticeInfo/lastOrNextOne?id=${noticeInfo.id}&flag=1">下一篇</a></li> --%>
	</div>
</section>
<script type="text/javascript">
	var ctx = '${ctx}';
</script>
